package MyArray;

public class ArrayDemo1 {
    public static void main(String[] args) {
        //完整格式
        int[] ages = new int []{18,20,22};
        double[] scores = new double[]{95.5,90.0,75.5};

        //简化格式
        int[] ages1 ={18,20,22};
        double[] scores1 ={95.5,90.0,75.5};

        String[] name ={"数组","数组名"};
    }
}
